<?xml version="1.0"?>
<doc>
    <assembly>
        <name>GTM.Sytech.Serial2USB</name>
    </assembly>
    <members>
        <member name="T:Gadgeteer.Modules.Sytech.Serial2USB">
             <summary>
             A Serial2USB Gadgeteer module
             </summary>
             
                 /// <example>
             <para>The following example show intialization of a <see cref="!:SerialCamera"/> object </para>
             <code>
             using System;
             using Microsoft.SPOT;
             using Microsoft.SPOT.Presentation;
             using Microsoft.SPOT.Presentation.Controls;
             using Microsoft.SPOT.Presentation.Media;
            
             using GT = Gadgeteer;
             using GTM = Gadgeteer.Modules;
            
             using Gadgeteer.Modules.Sytech;
            
             namespace GadgeteerAppGettingStarted
             {
                 public partial class Program
                 {
                     // This template uses the NANAO mainboard from Sytech Designs
            
                     // Define and initialize GTM.Modules here, specifying their socket numbers.   
                     // Needs a USB Device module for connection to VS and suppying power     
                     GTM.Sytech.UsbDevice usbClient = new UsbDevice(1);
                     GTM.Sytech.Button button = new Button(2);
            
                      
                        
                     
                     
             
                     GTM.Sytech.Serial2USB serial2USB = new Serial2USB(2);
            
                     void ProgramStarted()
                     {
                         // Initialize event handlers here.
                         
                          button.ButtonPressed += new Button.ButtonEventHandler(button_ButtonPressed);
                         // Do one-time tasks here
                        
             
                         
                         Debug.Print("Program Started");
                     }
            
                     void button_ButtonPressed(Button sender, Button.ButtonState state)
                     {
                         serial2USB.GetPort.Write("Button Pushed - serial string");
                     }
             
                     
                     //Event handler for progress event
                     //Just show data on debug output
                    void SerialCamera_OnPictureProgess(object sender, ProgressEventArg arg)
                    {
                        Debug.Print("Picture progress size : " + arg.size + " blocks:" + arg.Blocks + " this block:" + arg.blockReceived);
                    }
             
                     
                 }
             }
            
             </code>
             </example>
        </member>
        <member name="M:Gadgeteer.Modules.Sytech.Serial2USB.#ctor(System.Int32)">
            <summary></summary>
            <param name="socketNumber">The socket that this module is plugged in to.</param>
        </member>
        <member name="M:Gadgeteer.Modules.Sytech.Serial2USB.Configure(System.Int32,Gadgeteer.Interfaces.Serial.SerialParity,Gadgeteer.Interfaces.Serial.SerialStopBits,System.Int32,System.Boolean)">
            <summary>
            Configure the serial interface for this module.
            This can only be done once
            This must be done before calling <see cref="P:Gadgeteer.Modules.Sytech.Serial2USB.GetPort"/> other wise
            GetPort will set up default settings
            </summary>
            <param name="baudrate">the baud rate</param>
            <param name="parity">Gadgeteer Serial Parity enumeration</param>
            <param name="stopBits">Gadgeteer Serial stop bits enum</param>
            <param name="dataBits">number of data bits</param>
            <param name="useHandshakeIfAvail">true if handshake to be used if supported</param>
        </member>
        <member name="P:Gadgeteer.Modules.Sytech.Serial2USB.GetPort">
            <summary>
            Returns the Gadgeteer <see cref="T:Gadgeteer.Interfaces.Serial"/> interface for this module.
            If one has not been created (by calling configure, or a previous call to
            this method) then one is created with default settings of
            38800 baud, 8 data, 1 stop but and no parity or handshake.
            
            If you dont want the default settings then call configure <see cref="M:Gadgeteer.Modules.Sytech.Serial2USB.Configure(System.Int32,Gadgeteer.Interfaces.Serial.SerialParity,Gadgeteer.Interfaces.Serial.SerialStopBits,System.Int32,System.Boolean)"/> first
            
            
            </summary>
        </member>
    </members>
</doc>
